﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using StructureMap;
using MethodWorx.CMS.Membership;

namespace MethodWorx.CMS.UI.Application
{
    public class ModelFactory<T> : IModelFactory<T>
    {
        #region IModelFactory<T> Members

        public T CreateModel(User user)
        {
            return ObjectFactory.With(user).GetInstance<T>();
        }

        #endregion
    }
}